package ontowebapp.trimstring.ui.lib;

import ontocompo.ui.api.html.HtmlButtonItf;

import org.objectweb.fractal.fraclet.annotations.Component;
import org.objectweb.fractal.fraclet.annotations.Interface;
import org.objectweb.fractal.fraclet.annotations.Requires;

@Component(provides = {@Interface(name = "htmlButtonItf", signature = ontocompo.ui.api.html.HtmlButtonItf.class), @Interface(name = "ontocompoIntrospectionItf", signature = ontocompo.api.IntrospectionItf.class), @Interface(name = "htmlEntryPoint", signature = ontocompo.ui.api.html.HtmlElementItf.class)})
public class TrimButton extends ontocompo.ui.lib.html.HtmlButton implements HtmlButtonItf {

	@Requires(name = "trimController")
	private ontocompo.control.api.ControllerItf trimController;

	public TrimButton() {
		this.uid = "ontowebapp.trimstring.ui.lib.TrimButton";
		this.htmlId = "trimButton";
	}
	
	@Override
	public void init() {
		this.setContent("Trim");
	}

	@Override
	public void action() {
		this.trimController.execute();
	}
	
}